﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.IRmPavilion _iRmPavilion;

        public static IRmPavilion CreateRmPavilion()
        {
            if (_iRmPavilion == null)
            {
                string className = GlobalConfig.RtSystemPath + ".RM.RmPavilion_Sys";
                _iRmPavilion = (IRmPavilion)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iRmPavilion;
        }
    }

    public interface IRmPavilion
    {
        bool UpdatePavilionData(DataTable dt);
        DataTable GetPavilionData(String Where);
    }
}
